<?php

namespace App\Library\Traits\Orm;

use App\Models\ShopOrderReturnModel;
use Illuminate\Database\Eloquent\Relations\HasOne;

trait OrderOrmTrait
{
    public function afterSale(): HasOne
    {
        return self::hasOne(ShopOrderReturnModel::class, 'order_id', 'order_id');
    }
}
